import uni from '@dcloudio/vite-plugin-uni'
import createUnoCSS from './unocss'
import createAutoImport from './auto-import'
import { presetUno, presetAttributify } from "unocss";

export default function createVitePlugins() {
  const vitePlugins = [uni()]
  vitePlugins.push(createUnoCSS({presets: [presetUno(), presetAttributify()]}))
  vitePlugins.push(createAutoImport())
  return vitePlugins
}